package cn.iocoder.yudao.module.bpm.enums.definition;

import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * BPM 模型的表单类型的枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum BpmModelExceptionConfigTypeEnum {

    STEP_TASK("stepTask", "跳过该节点"),
    TO_USER("toUser", "指定人员"),
    ;


    private final String type;
    private final String name;

    public static BpmModelExceptionConfigTypeEnum nameOfType(String type) {
        for (BpmModelExceptionConfigTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }

}
